package com.heima.mapper;

import com.heima.pojo.GoodsInfo;
import com.heima.pojo.GoodsQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface GoodsMapper {

    @Select("select sku_name from tb_sku where sku_name = #{skuName}")
    String selectGoodsName(String skuName);

    int addGoods(GoodsInfo goods);

    List<GoodsInfo> getGoodslist(GoodsQueryParam param);

    void updateGoods(GoodsInfo goodsInfo);
}
